import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '企业名称',
    align: "center",
    dataIndex: 'companyName'
  },
  {
    title: '企业编码',
    align: "center",
    dataIndex: 'code'
  },
  {
    title: '企业级次',
    align: "center",
    dataIndex: 'companyLevel'
  },
  {
    title: '资产名称',
    align: "center",
    dataIndex: 'assetName'
  },
  {
    title: '坐落位置',
    align: "center",
    dataIndex: 'location'
  },
  {
    title: '取得时间',
    align: "center",
    dataIndex: 'getTime'
  },
  {
    title: '取得方式',
    align: "center",
    dataIndex: 'getMethod'
  },
  {
    title: '资产性质',
    align: "center",
    dataIndex: 'assetProperty'
  },
  {
    title: '用途',
    align: "center",
    dataIndex: 'useMethod'
  },
  {
    title: '使用状态',
    align: "center",
    dataIndex: 'useStatus'
  },
  {
    title: '资产状态',
    align: "center",
    dataIndex: 'assetStatus'
  },
  {
    title: '面积',
    align: "center",
    dataIndex: 'bookArea'
  },
  {
    title: '原值',
    align: "center",
    dataIndex: 'bookOriginalValue'
  },
  {
    title: '净值',
    align: "center",
    dataIndex: 'bookNetValue'
  },
  {
    title: '证件类型',
    align: "center",
    dataIndex: 'cardType'
  },
  {
    title: '有证面积',
    align: "center",
    dataIndex: 'cardArea'
  },
  {
    title: '无证面积',
    align: "center",
    dataIndex: 'noCardArea'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
];

// 高级查询数据
export const superQuerySchema = {
  companyName: {title: '企业名称',order: 0,view: 'popup', type: 'string',code: 'test_building', orgFields: 'depart_name', destFields: 'companyName', popupMulti: false,},
  code: {title: '企业编码',order: 1,view: 'text', type: 'string',},
  companyLevel: {title: '企业级次',order: 2,view: 'text', type: 'string',},
  assetName: {title: '资产名称',order: 3,view: 'text', type: 'string',},
  location: {title: '坐落位置',order: 4,view: 'text', type: 'string',},
  getTime: {title: '取得时间',order: 5,view: 'text', type: 'string',},
  getMethod: {title: '取得方式',order: 6,view: 'list', type: 'string',dictCode: 'get_method',},
  assetProperty: {title: '资产性质',order: 7,view: 'list', type: 'string',dictCode: 'asset_nature',},
  useMethod: {title: '用途',order: 8,view: 'list', type: 'string',dictCode: 'use_method',},
  useStatus: {title: '使用状态',order: 9,view: 'list', type: 'string',dictCode: 'use_status',},
  assetStatus: {title: '资产状态',order: 10,view: 'list', type: 'string',dictCode: 'asset_status',},
  bookArea: {title: '面积',order: 11,view: 'number', type: 'number',},
  bookOriginalValue: {title: '原值',order: 12,view: 'number', type: 'number',},
  bookNetValue: {title: '净值',order: 13,view: 'number', type: 'number',},
  cardType: {title: '证件类型',order: 14,view: 'list', type: 'string',dictCode: 'card_type',},
  cardArea: {title: '有证面积',order: 15,view: 'number', type: 'number',},
  noCardArea: {title: '无证面积',order: 16,view: 'number', type: 'number',},
  remark: {title: '备注',order: 17,view: 'text', type: 'string',},
};
